package com.riant.day07;

import java.util.Set;
import java.util.TreeSet;

/**
 * @Classname Demo02
 * @Description TODO
 * @Date 2021/3/20 12:18
 * @Created by 张斌
 */
public class Demo02 {
    public static void main(String[] args) {
        Set<Integer> set =new TreeSet<>();
        set.add(10);
        set.add(5);
        set.add(15);
        set.add(88);
        set.forEach(item-> System.out.println(item));
    }
}
